
package com.tjtt.tdm.codeReview.dao;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.hibernate.Query;

import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.exception.DaoException;
import com.tjtt.tdm.exception.ServiceException;
import com.tjtt.tdm.flow.bean.FlowDetailed;
import com.tjtt.tdm.flow.bean.FlowTask;
import com.tjtt.tdm.flow.bean.FlowTaskInfo;
import com.tjtt.tdm.flow.bean.Flowtype;
import com.tjtt.tdm.form.bean.TdmAnnex;
import com.tjtt.tdm.system.bean.Users;

/**
 * @author 张海娜
 *
 */
public interface ICodeReviewDao {
	/**
	 * 根据流程实例id获得实体类
	 * @return
	 * @throws IOException
	 * @throws ServiceException String
	 * @author 张海娜
	 * @date 2013-2-25 下午02:16:54
	 */
	public Flowtype findFileNameById(Long id) ;
	public String saveFlowTask(FlowTask flowTask);
	public void updateFlowTask(FlowTask flowTask);
	/**
	 * 
	 * 描述：流程详细信息
	 * @author wangxd
	 * @date Jul 1, 2015 10:51:08 AM
	 * @return void
	 * @throw
	 */
	public void saveFlowDetailed(FlowDetailed flowDetailed);
	public FlowTask getFlowTaskById(Long ids);
	public void saveFlowTaskInfo(FlowTaskInfo flowTaskInfo);
	public List queryListBySql(String sql);
	public FlowTaskInfo getFlowTaskInfoById(Long ids);
	public void updateFlowTaskInfo(FlowTaskInfo flowTaskInfo);
	/**
	 * 
	 *方法描述:查询原始记录模版
	 *@author: wangxd
	 *@date: 2014-3-10下午12:15:11
	 *@param filterMap
	 *@return
	 */
	public PageResult queryFilemodeList(Map filterMap);
	public PageResult queryReportFilemodeList(Map filterMap);
	public TdmAnnex queryTdmAnnexById(Long id) ;
	/**
	 * 
	 * 描述：查询原始记录对应的标签
	 * @author wangxd
	 * @date Aug 5, 2015 5:16:45 PM
	 * @return List
	 * @throw
	 */
	public List queryFlowItemByFileModeId(Long fileModeId,String bqType);
	/**
	 * 
	 * 描述：样品接收
	 * @author wangxd
	 * @date Aug 21, 2015 5:02:52 PM
	 * @return PageResult
	 * @throw
	 */
	public PageResult queryGwmSampleManageList(Map filterMap);
	/**
	 * 
	 * 描述：样品接收 --样品详细
	 * @author wangxd
	 * @date Aug 21, 2015 5:02:52 PM
	 * @return PageResult
	 * @throw
	 */
	public PageResult querySampleDetailBytaskId(Map filterMap);
	public void deleteFlowTaskInfoByTaskid(String taskid) ;
	public List<FlowTaskInfo> getFlowTaskInfoByTaskid(String flowtaskid);
	public List queryTdmPrintreportmodeItem(String fileModeId, String bqType);
	 /** 
	 *方法描述:根据打印模版ID查询对应的标签
	 *@author: wangxd
	 *@date: 2013-11-15下午02:14:40
	 *@param fileModeId
	 *@return
	 */
	public List queryPrintbiaoqNameById(Long fileModeId,String bqType);
}
